import instance from "../request"

// 订单列表查询
export function getOrderList(params){
    return instance(`/api/order/list`,{
        method:'GET',
        params,
    })
}

// 订单新增
export function addOrder(data){
    return instance(`/api/order/add`,{
        method:'POST',
        data,
    })
}

// 获取订单详情
export function getOrderDetails(id){
    return instance(`/api/order/${id}`,{
        method:'GET',
    })
}

// 获取合同详情
export function getContractDetails(id){
    return instance(`/api/Contact/${id}`,{
        method:'GET',
    })
}

// 修改合同详情
export function editContractDetails(data){
    return instance(`/api/Contact/edit`,{
        method:'POST',
        data,
    })
}

// 获取签名二维码
export function getAutograph(url){
    return instance(`/api/order/qECode?url=${url}`,{
        method:'GET',
    })
}

// 确认收款
export function confirmCollection(id){
    return instance(`/api/order/manual/${id}`,{
        method:'POST',
    })
}
export function getProvince(){
    return instance(`/api/Contact/province`,{
        method:'GET',
    })
}